package com.aiti.ai.schedule;

import com.aiti.ai.service.EnterpriseDealService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.concurrent.TimeUnit;

@Component
public class EnterpriseDataPopulateSchedule {
    @Autowired
    private EnterpriseDealService enterpriseDealService;

    @Scheduled(cron = "0 0 1 * * ?", zone = "Asia/Shanghai")
    public void populateData(){
        enterpriseDealService.dealEnterprise();
    }
}
